<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 *公告管理
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'lookgoods';
if($_RQ['op']=='lookgoods'){
	$item=$this->plugin_setting('basic');
	if($_RQ['postdata']){
		$post=get_postdata();
		$this->plugin_setting('basic',$post);
		exi('设置成功');
	}
	$return['item']=$item;
	$htmls=array(
		'type'=>'edit',
		'desc'=>'看商品有奖',
		'tabs'=>$tabs,
		'edit'=>array(
			array('type'=>'switch','name'=>'lookgoods_isopen','title'=>'是否开启','help'=>'默认关闭，开启后，看商品有奖'),
			array('type'=>'string','title'=>'活动标题','name'=>'lookgoods_title','help'=>'活动名称，最长14个汉字，1个汉字相当于2个字符','show'=>array('status'=>array(0,3))),
			array('type'=>'image','title'=>'活动图片','name'=>'lookgoods_image','help'=>'<red>图片规则：图片尺寸最大300像素*300像素；否则无法发布到直播间</red>','show'=>array('status'=>array(0,3))),
			array('type'=>'string','title'=>'奖励价值','name'=>'lookgoods_originalprice','show'=>array('status'=>array(0,2,3))),
			array('type'=>'radio','title'=>'活动类型','name'=>'lookgoods_type','options'=>'huo_type'),
			array('type'=>'unitstring','unit'=>'分钟','name'=>'fen','title'=>'最小间隔N分钟'),
			array('type'=>'unitstring','unit'=>'积分','name'=>'num','title'=>'每次奖励N个积分'),
		)
	);
	$return['htmls']=$htmls;
	$return['huo_type']=array('看商品奖励积分');
	exi($return);
}